package com.cj.bk_app.model.bean

import java.io.Serializable

data class Book(
    val id: String,
    val title: String,
    val author: String,
    val publisher: String,
    val publicationDate: String,
    val category: String,
    val price: Float,
    val stockQuantity: Int,
    val coverImage: String,
    val description: String,
    val rating: Int
) : Serializable {

    fun getAuthorName() = author.ifBlank { "分享者: $author" }
}